package com.wdj.creation.builder.builder;

import com.wdj.creation.builder.entity.Actor;

/**
 * @ClassName ActorBuilder
 * @Description
 * @Author wdj
 * @Date 2020/12/7 21:21
 * @Version 1.0
 **/
public abstract class ActorBuilder {
    protected static Actor actor = new Actor();
    public abstract void builderType();
    public abstract void builderSex();
    public abstract void builderFace();
    public abstract void builderCostune();
    public abstract void builderHairsytle();


    public static Actor construct(ActorBuilder actorBuilder){
        actorBuilder.builderType();
        actorBuilder.builderSex();
        actorBuilder.builderFace();
        actorBuilder.builderCostune();
        actorBuilder.builderHairsytle();
        return actor;
    }
}
